﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;

namespace DA1
{
    public partial class Search_CT_ThanhPham : Form
    {
        public Search_CT_ThanhPham()
        {
            InitializeComponent();
        }

        private void btn_Thoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_Tim_Click(object sender, EventArgs e)
        {
            ThanhPham_BUS bus = new ThanhPham_BUS();
            DateTime NgayTao = DateTime.Parse(DTPK_NgayTao.Text.ToString());
            DataTable dt1 = new DataTable();
            dt1 = bus.GetDanhSachCT_ThanhPham(NgayTao);
            DGV_DanhSachTP.DataSource = dt1;
        }

        private void Search_CT_ThanhPham_Load(object sender, EventArgs e)
        {

        }

        private void DTPK_NgayTao_ValueChanged(object sender, EventArgs e)
        {
               
        }

        
    }
}
